public class MyArray <T>{
    public Object[] array = new Object[10];

    public void setArray(int index, T val){
        this.array[index] = val;
    }

    public T getArray(int index){
        return (T)this.array[index];
    }
}
